package com.shop.storage.mapper;

import java.util.List;
import com.shop.storage.domain.WmsForewarning;
import com.shop.storage.vo.response.ForewarningResponse;
import org.apache.ibatis.annotations.Param;

/**
 * 预警Mapper接口
 * 
 * @author shop
 * @date 2024-06-24
 */
public interface WmsForewarningMapper 
{
    /**
     * 查询预警
     * 
     * @param id 预警主键
     * @return 预警
     */
    public WmsForewarning selectWmsForewarningById(Long id);

    /**
     * 查询预警列表
     * 
     * @param wmsForewarning 预警
     * @return 预警集合
     */
    public List<ForewarningResponse> selectWmsForewarningList(WmsForewarning wmsForewarning);

    /**
     * 新增预警
     * 
     * @param wmsForewarning 预警
     * @return 结果
     */
    public int insertWmsForewarning(WmsForewarning wmsForewarning);

    /**
     * 修改预警
     * 
     * @param wmsForewarning 预警
     * @return 结果
     */
    public int updateWmsForewarning(WmsForewarning wmsForewarning);

    /**
     * 删除预警
     * 
     * @param id 预警主键
     * @return 结果
     */
    public int deleteWmsForewarningById(Long id);

    /**
     * 批量删除预警
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteWmsForewarningByIds(Long[] ids);

    /**
     * 批量修改
     * @param wmsForewarnings
     */
    void updateWmsForewarningList(@Param("wmsForewarnings") List<WmsForewarning> wmsForewarnings);

    /**
     * 根据仓库id修改
     * @param id
     */
    public int updateWmsForewarningSkuId(@Param("id")Long id, @Param("status") Long status);

}
